<template>
	<view>
		<view class="header status_bar" :class="scrrol == true ? 'scrrolHeader' : ''">
			<view class="back iconfont icon-xiangzuo1" @tap="backPage"></view>
			<view class="text" :class="scrrol == true ? 'scrrolHeader' : ''">覆约结果</view>
		</view>	
		<view class="bg_box">
			<image class="bg01" src="../../../static/bg05.png" mode="widthFix"></image>
			<view class="bg_content">
				
				<view class="appoint_box">
					<view class="appoint_text">
						<view class="text_box">
							<view class="num">本期已提前结清</view>
							<view class="text">成功覆约25000.00元，覆约结果以银行短信为准</view>
						</view>
					</view>
				</view>
				
				<view class="records_maxbox">
					<view class="records_bg"></view>
					<view class="records_box">
						<view class="records_menu">
							<view class="menu" :class="select == 0 ? 'menucolor' : ''">近期覆约计划</view>				
						</view>
						<view class="rule_box">
							<view class="rule_auto">
								<view class="rule">下期覆约</view>
								<view class="rule">￥2292.00</view>
							</view>
							<view class="rule_auto">
								<view class="rule">覆约笔数</view>
								<view class="rule">2笔</view>
							</view>
							<view class="rule_auto">
								<view class="rule">最后覆约日</view>
								<view class="rule">5月19日</view>
							</view>
						</view>
						<view class="rule_text">还款日前3天，我们将短信/小程序消息提醒您按时还款哦~</view>
							
							
						
						
					</view>
				</view>
				
				
				
			</view>
		</view>
		
		<view class="confirm" :data-url="'/pages/index/index'" @click="gotopage02">返回首页</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				page:1,
				scrrol:false,
				info:'',
				select:0,
				
			}
		},
		onLoad() {

		},
		methods: {
			setRule(e){
				let that = this;
				let index = e.currentTarget.dataset.index;
				that.flowList[index].tick = !that.flowList[index].tick
			},
			loadData() {
				let that = this;
			// 	that.Net._get('shop_home', {}, res => {
			// 		if (res.code == 200) {
			// 			//console.log(res);
			
			// 		}
			// 	});
			},
			backPage() {
				uni.navigateBack({});
			},
			gotopage(e) {
				let url = e.currentTarget.dataset.url;
				uni.navigateTo({
					url: url
				});
			},
			gotopage02(e) {
				let url = e.currentTarget.dataset.url;
				console.log(url)
				uni.switchTab({
					url: url
				});
			}

		},
		onPageScroll: function(Object) {
			//console.log(Object.scrollTop); //实时获取到滚动的值
			if (Object.scrollTop > 28) {
				this.scrrol = true;
				/* #ifdef APP-PLUS */
				/* #endif */
			} else if (Object.scrollTop < 28) {
				this.scrrol = false;
				/* #ifdef APP-PLUS */
				/* #endif */
			}
		},
		onReachBottom() {
		  var that = this;
		  that.page++;
		  // that.Net._get('shop_goods', {per_page:'10',page:that.page,}, res => {
		  //   if (res.code == 200) {
		  //     //console.log(res)
		  //     if (res.data.data == '') {
		  //       uni.showToast({
		  //         title: '已经是最后一页了',
		  //         duration: 2000,
		  //         icon: 'none'
		  //       });
		  //     } else {
		  //       that.info = that.info.concat(res.data.data); //将数据拼接在一起
		  //     }
		  //   } else if (res.code == 0) {
		  //     that.Msg.Success(res.msg, res => {});
		  //   }
		  // });
		},
	}
</script>

<style>
	
	.header{
		background-color: transparent !important;
	}
	
	.header .text{
		background-color: transparent !important;
		color: #333 !important;
	}
	
	.scrrolHeader{
		background-color: #F9E9E3 !important;
	}
	
	.bg_box{
		width: 100%;
		position: relative;
	}
	
	.bg_box .bg01{
		width: 100%;
	}
	
	.bg_box .bg_content{
		width: 92%;
		position: absolute;
		left: calc(50% - 46%);
		top: calc(13.5vw + var(--status-bar-height));
		z-index: 98;
	}
	
	.appoint_box{
		width: 100%;
	}
	
	.appoint_box .appoint_text{
		width: 100%;
		padding: 6vw 5vw;
		display: flex;
		align-items: center;
	}
	
	.appoint_box .appoint_text .text_box{
		flex: 1;
	}
	
	.appoint_box .appoint_text .menu{
		width: 24vw;
		height: 10vw;
		line-height: 10vw;
		border-radius: 10vw;
		text-align: center;
		line-height: 10vw;
		font-size: 3.5vw;
		background-color: #fff;
		color: #FA6E0C;
	}
	
	.appoint_box .appoint_text .icon{
		font-size: 20vw;
		color: #D1D1D1;
	}
	
	.appoint_box .appoint_text .text_box .title{
		font-size: 3.5vw;
		color: #333;
	}
	
	.appoint_box .appoint_text .text_box .num{
		font-size: 7.5vw;
		color: #333;
		font-weight: bold;
		margin-top: 2vw;
	}
	
	.appoint_box .appoint_text .text_box .text{
		font-size: 3.5vw;
		color: #FC5D20;
		margin-top: 2vw;
	}
	
	.records_maxbox{
		width: 100%;
		margin-top: 4%;
		position: relative;
	}
	
	.records_maxbox .records_bg{
		width: 104%;
		position: absolute;
		top: 0;
		left: -2%;
		background-color: #FBB89D;
		height: 4vw;
		border-radius: 4vw;
	}
	
	.records_box{
		width: 100%;	
		background-color: #fff;
		padding: 0 4vw 4vw;
		border-radius: 0 0 3vw 3vw;
		position: absolute;
		left: 0;
		top: 2vw;
		z-index: 98;
	}
	
	.records_menu{
		width: 100%;
		display: flex;
		align-items: center;
		height: 13vw;
		border-bottom: 1px solid #E0E4EC;
	}
	
	.records_menu .menu{
		width: 30vw;		
		height: 100%;
		line-height: 13vw;
		margin-right: 5vw;
		font-size: 4vw;
		color: #666666;
		text-align: center;
	}
	
	.menucolor{
		color: #333 !important;
		font-weight: bold;
		border-bottom: 3px solid #FC5D20;
	}
	
	.records_list{
		width: 100%;
		margin-top: 4%;
		display: flex;
		align-items: center;
	}
	
	.records_list .text_box{
		
	}
	
	.records_list .text_box:nth-child(1){
		flex: 0.6;
	}
	
	.records_list .text_box:nth-child(2){
		flex: 0.4;
	}
	
	.records_list .text_box .title{		
		display: flex;
		align-items: center;
	}
	
	.records_list .text_box .title .name{
		font-size: 4vw;
		color: #333;
		font-weight: bold;
	}
	
	.records_list .text_box .title .tag{
		font-size: 3vw;
		color: #B5B5B5;
		background-color: #F4F5F7;
		height: 5vw;
		padding: 0 1vw;
		border-radius: 1vw;
		display: flex;
		align-items: center;
		margin-left: 2vw;
	}
	
	.records_list .text_box .title .tag02{
		font-size: 3vw;
		color: #FC5D20;
		background-color: #FFF7F4;
		height: 5vw;
		padding: 0 1vw;
		border-radius: 1vw;
		display: flex;
		align-items: center;
		margin-left: 2vw;
	}
	
	.records_list .text_box .title .tag03{
		font-size: 3vw;
		color: #FF0005;
		background-color: #FFF2F2;
		height: 5vw;
		padding: 0 1vw;
		border-radius: 1vw;
		display: flex;
		align-items: center;
		margin-left: 2vw;
	}
	
	.records_list .text_box .time{
		font-size: 3.5vw;
		color: #999999;
		margin-top: 2vw;
	}
	
	.records_list .text_box .money{
		font-size: 3.8vw;
		color: #333;
		font-weight: bold;
		text-align: right;
	}
	
	.records_list .text_box .text{
		font-size: 3.5vw;
		color: #999999;
		margin-top: 2vw;
		text-align: right;
	}
	
	.rule_text{
		font-size: 3vw;
		color: #FC5D20;
		margin-top: 3vw;
	}
	
	.rule_box {
		width: 100%;
		padding: 4vw;
		border-radius: 3vw;
		background-color: #F8F8F8;
		margin-top: 4%;
	}
	
	.rule_auto {
		display: flex;
		align-items: center;
		height: 8vw;
	}
	
	.rule_auto .rule {
	
		font-size: 3.5vw;
		color: #333;
		font-weight: bold;
	}
	
	.rule_auto .rule:nth-child(1) {
		flex: 0.4;
	}
	
	.rule_auto .rule:nth-child(2) {
		flex: 0.6;
		text-align: right;
	}
	
	
	
	
	
</style>
